export const asyncThrowError = function (error) {
  if (!(error instanceof Error)) {
    error = new Error(error)
  }
  ;(async (error) => {
    throw error
  })(error)
}
